package com.ow.dva.module.roadCode.service.impl;

import com.ow.dva.module.roadCode.entity.RoadCode;
import com.ow.dva.module.roadCode.mapper.RoadCodeMapper;
import com.ow.dva.module.roadCode.service.RoadCodeService;
import com.ow.dva.module.base.service.impl.DvaServiceImpl;
import com.ow.dva.config.annotation.DvaCache5M;
import org.springframework.stereotype.Service;
import com.ow.dva.module.base.entity.param.DvaPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jinagyanpeng
 * @since 2020-04-10
 * @version V1.0
 */
@Service
public class RoadCodeServiceImpl extends DvaServiceImpl<RoadCodeMapper, RoadCode> implements RoadCodeService {

    @Override
    public DvaPage<RoadCode> page(DvaPage<RoadCode> page, Map<String, Object> param) {

        return baseMapper.page(page,param);
    }

    @Override
    public List<RoadCode> selectByRoadId(String roadId) {
        return baseMapper.selectByRoadId(roadId);
    }

    @Override
    public Integer removeByRoadId(String roadId) {
        return baseMapper.removeByRoadId(roadId);
    }
}
